﻿@model IEnumerable<DataMongo.Entities.DrinkingHabits>
@{

}
<div class="row">
    <div class="col-lg-12">
        <h2>DrinkingHabits List</h2>
        <p>@Html.ActionLink("Create", "DrinkingHabitsAdd", "SuperAdmin", "", new { @class = "btn btn-info" })</p>
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped tablesorter">
                <thead>
                    <tr>
                        <th>Title <i class="fa fa-sort"></i></th>


                        <th>IsActive <i class="fa fa-sort"></i></th>

                        <th width="15%">

                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>@item.Title</td>

                            <td>
                                @if (item.IsActive)
                                {
                                    <input type="checkbox" disabled="disabled" checked="checked" />
                                }
                                else
                                {
                                    <input type="checkbox" disabled="disabled" />             }

                            </td>

                            <td>
                                @Html.ActionLink("Edit", "DrinkingHabitsEdit", new { id = item.DrinkingHabitsId }) |
                                @Html.ActionLink("Delete", "DrinkingHabitsDelete", new { id = item.DrinkingHabitsId })
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
            @Html.ActionLink("Back", "PersonalDetail", "PersonalDetails", "", new { @class = "btn btn-info" })
        </div>
    </div>
</div>
